package com.googlecode.flealancemarket.service.commands.impl;

import com.googlecode.flealancemarket.metamodel.Job;
import com.googlecode.flealancemarket.metamodel.User;
import com.googlecode.flealancemarket.service.commands.GetJobsForUser;
import com.googlecode.flealancemarket.service.facades.JobFacade;
import java.util.List;

public class GetJobsForUserImpl implements GetJobsForUser {

    private User user;
    private JobFacade facade;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public JobFacade getFacade() {
        return facade;
    }

    public void setFacade(JobFacade facade) {
        this.facade = facade;
    }

    public List<Job> execute(){
        return facade.getJobsForUser(user);
    }

}
